Copyright (c) Intel Corporation, 2021 All Rights Reserved.

Intel(R) Active Management Technology (Intel(R) AMT):
A short description of the HostBasedSetupUntyped sample code for the 
usage of developers.

HostBasedSetupUntyped sample application:
-----------------------------------------
This sample application demonstrates how, using WS-Management Untyped classes, 
to setup an Intel(R) AMT device in client control mode, after the setup is 
done, the device will be ready to be configured. This sample runs locally on the
AMT device, and does not use TLS.
In addition the sample application demonstrates how to discover, disable and
unprovision an Intel(R) AMT device in client control mode.

How to compile and run the sample:
----------------------------------
1. Open the "HostBasedSetupUntyped.vcxproj" in Microsoft Visual Studio* and 
   build the solution. An output file "HostBasedSetup.exe" file should be 
   created.
2. Use the generated executable as described in the command usage (type the 
   Command to obtain the usage instructions).
3. This sample performs all of its WS-Management calls in TCP mode using the
   $$OsAdmin credentials (retrieved by the sample itself).
4. This sample uses the OpenWSMAN library by referencing the WS-Management 
   module dlls/libs. 
5. This sample application uses CPPCimFrameworkUntyped.dll (or 
   CPPCimFrameworkUntypedD.dll when compiled in Debug mode). Make sure 
   CPPCimFrameworkUntyped.dll is located in the same directory as the 
   application. 
   In order to generate the CPPCimFrameworkUntypedD.dll file, compile the 
   CimFrameworkUntyped project in debug mode(located in WS-ManagementCPPModule 
   package). 
6. In order to compile the sample code in debug mode you need to put the 
   CPPCimFrameworkUntypedD.lib  and CimOpenWsmanClientD.lib files in the Lib 
   folder.
7. This sample supports the following operations:
   * Discovery:
     Perform discovery test on the Intel(R) AMT device using the -discovery 
     option. The discovery test retrieves the system's allowed control modes and
     the current control mode.
   * Setup:
     Perform a setup of an Intel(R) AMT device in client control mode using the
     -setup option.
     After the setup is done, the device will be ready to be configured.
   * Signed local setup:
     Perform a signed local setup of an Intel(R) AMT device in client control 
     mode using the -setup option..
     After the setup is done, the device will be ready to be configured.
   * Admin Setup:
     Perform an admin setup of an Intel(R) AMT device in admin control mode 
     using the -adminsetup option.
     After the setup is done, the device will be ready to be configured.
   * Upgrade:
     Perform an upgrade of an Intel(R) AMT device from client control mode to 
     admin control mode using the -upgrade option. After the setup is done,
     the device will be ready to be configured.
   * Disable:
     Disable the client control mode of an Intel(R) AMT device using the 
     -disable option. Since this operation is irreversible (once client control 
     mode is disabled it cannot be enabled), one must use the -force option 
     (along with the -disable option) to actually disable the client control 
     mode.
   * Unprovision:
     Perform an unprovision of an Intel(R) AMT device in client control mode 
     using the -unprovision option. 
   * Get configuration nonce:
     Perform get configuration nonce on the Intel(R) AMT device using the 
     -getnonce option. The option retrieves the configuration nonce from the 
     Intel(R) AMT device.

-------------------------------------------------------------------
* Other names and brands may be claimed as the property of others.
